package com.zxc.shop.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author:zxc  goods
 * @Description: 自定义异常
 * 业务执行出错会跑车这个异常
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BusinessException extends RuntimeException {

    private String msg;
    private int code = 555;  //业务异常出错报555
}
